package com.example.springboot_test.easyexcel.model;

import com.example.springboot_test.easyexcel.model.common.SheetModel;
import lombok.Getter;

/**
 * 水印信息类
 *
 * @author xudongmaster
 */
@Getter
public class WaterMarkModel extends SheetModel {
    /**
     * 水印数据
     */
    private byte[] waterMarkBytes;

    private WaterMarkModel() {
    }

    /**
     * 生成水印信息
     *
     * @param sheetName      sheet页名称
     * @param waterMarkBytes 水印数据
     * @return 水印信息
     */
    public static WaterMarkModel createWaterMarkModel(String sheetName, byte[] waterMarkBytes) {
        WaterMarkModel waterMarkModel = new WaterMarkModel();
        //sheet页名称
        waterMarkModel.sheetName = sheetName;
        //水印数据
        waterMarkModel.waterMarkBytes = waterMarkBytes;
        return waterMarkModel;
    }
}
